import request from '@/utils/request'

// 查询获奖完成人列表
export function listAwardWinners(query) {
  return request({
    url: '/work/awardWinners/list',
    method: 'get',
    params: query
  })
}

// 查询获奖完成人详细
export function getAwardWinners(id) {
  return request({
    url: '/work/awardWinners/' + id,
    method: 'get'
  })
}

// 新增获奖完成人
export function addAwardWinners(data) {
  return request({
    url: '/work/awardWinners',
    method: 'post',
    data: data
  })
}

// 修改获奖完成人
export function updateAwardWinners(data) {
  return request({
    url: '/work/awardWinners',
    method: 'put',
    data: data
  })
}

// 删除获奖完成人
export function delAwardWinners(id) {
  return request({
    url: '/work/awardWinners/' + id,
    method: 'delete'
  })
}
